import _axios from "axios"

export const getUser = ()=>{
    
    let token = localStorage.getItem('token')
    let url = "/api/user";
    return _axios({
        url:url,
        method: "get",
        headers: {
          "Authori-zation": "Bearer " + token,
        },
    })
    //   let pro = _axios({
    //     url:url,
    //     method: "get",
    //     headers: {
    //       "Authori-zation": "Bearer " + token,
    //     },
    //   }).then(res=>{
        
        
    //   }).catch(err=>{
    //     console.log("失败")
    //   })
}